import {defineStore} from 'pinia'
import { getCityAll } from "@/services";

const useCityStore = defineStore('city',{
  state: () => ({
    allCities: {},
    cityName: "广州"
    
  }),
  actions:{
    async fetchDatas(){
      let res = await getCityAll()
      this.allCities = res.data
    }
  }
})

export default useCityStore